<?php	
	header('content-type:text/html;charset=utf-8');	
	$string = file_get_contents("php://input");	
	$stringQty = strlen($string);
	if ($stringQty > 8){
		$str = unpack('C8', $string);  		
		if($str[3] == 0x1f && $str[4] == 0x8b){
			$start = 2;
		}else if($str[5] == 0x1f && $str[6] == 0x8b){
			$start = 4;
		}else{
			$start = 0;
		}		

		if($start > 0){
			$compressedString = substr($string, 2); // 2表示截取从第三位开始的字符串			
			$gztext = gzdecode($compressedString);	// gzdecode解压
			$text = urldecode($gztext);				//url编码
		}else{
			$text = $string;
		}	
	}else{
		$text = $string;
	}
	
	$arr = explode('&', $text);
	$length = sizeof($arr);	
	$left;
	$right;
	for($index=0;$index<$length;$index++){
		$key = explode(':', $arr[$index]);
		$left[$index] = $key[0];
		$right[$index] = $key[1];
	}
	
	$type=0;
	
	$line = file_get_contents("C:\inetpub\wwwroot\lines.txt");	// 读取数据
	
	$layer = 0;		
	
	//if ($right[0] == 'fmrd'){											// forum.htm页面	读取信息	
	if ($right[0] == 'sfrd'){											// forum.htm页面	读取信息	
		$line = file_get_contents("C:\inetpub\wwwroot\lines.txt");		// 读取数据
		$layer = 0;														// 文件夹路径		
		file_put_contents("C:\inetpub\wwwroot\layers.txt", $layer); 	// 写入路径数据
		$type = 1;
	}
	else if ($right[0] == 'path'){										// forum.htm页面	路径跳转		
		$layer= $right[1];
		file_put_contents("C:\inetpub\wwwroot\layers.txt", $layer); 	// 写入路径数据
		$type = 2;
	}
	else if ($right[0] == 'them'){										// theme.htm页面	读取信息		
		$line = file_get_contents("C:\inetpub\wwwroot\lines.txt");		// 读取数据
		$layer = 1;														// 文件夹路径		
		file_put_contents("C:\inetpub\wwwroot\layers.txt", $layer); 	// 写入路径数据
		$type = 2;
	}
	else if ($right[0] == 'bwrd'){										// browse.htm页面	读取信息		
		$line = file_get_contents("C:\inetpub\wwwroot\lines.txt");		// 读取数据
		$layer = 2;														// 文件夹路径		
		file_put_contents("C:\inetpub\wwwroot\layers.txt", $layer); 	// 写入路径数据
		$type = 3;
	}
	else if ($right[0] == 'pfrd'){										// profile.htm页面	读取信息		
		$line = file_get_contents("C:\inetpub\wwwroot\lines.txt");		// 读取数据
		$layer = 2;														// 文件夹路径		
		file_put_contents("C:\inetpub\wwwroot\layers.txt", $layer); 	// 写入路径数据
		$type = 4;
	}
	
	if ($type == '1'){			// 首页数据
		$dn0['name'] = '夜半却有习习凉风；我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样AAAAAA';
		//$dn0['name'] = 'AAAA';
		$dn0['them'] = '1111';
		$dn0['post'] = '1122';
		$dn0['time'] = '2023-11-10 17:30:10';
		
		$dn1['name'] = 'BBBB';
		$dn1['them'] = '222';
		$dn1['post'] = '233';
		$dn1['time'] = '2023-11-10 17:30:10';
		
		$dn2['name'] = 'CCCC';
		$dn2['them'] = '333';
		$dn2['post'] = '344';
		$dn2['time'] = '2023-11-10 17:30:10';
		
		$dn3['name'] = 'DDDD';
		$dn3['them'] = '4444';
		$dn3['post'] = '455';
		$dn3['time'] = '2023-11-10 17:30:10';
		
		$dn4['name'] = 'EEEE';
		$dn4['them'] = '555';
		$dn4['post'] = '556';
		$dn4['time'] = '2023-11-10 17:30:10';
		
		$dn5['name'] = 'FFFF';
		$dn5['them'] = '666';
		$dn5['post'] = '667';
		$dn5['time'] = '2023-11-10 17:30:10';
		
		$path0['name'] = '';
		$pathA['name'] = 'aaaaaaa';
		$pathB['name'] = 'bbbbbbb';
		$pathC['name'] = 'CCCCCCC';
		$pathD['name'] = 'DDDDDDD';
		$pathE['name'] = 'EEEEEEE';
		
		if ($line == '1'){
			$list = array($dn0);	
		}else if($line == '2'){
			$list = array($dn0,$dn1);
		}else if($line == '3'){
			$list = array($dn0,$dn1,$dn2);
		}else if($line == '4'){
			$list = array($dn0,$dn1,$dn2,$dn3);	
		}else if($line == '5'){
			$list = array($dn0,$dn1,$dn2,$dn3,$dn4);	
		}else if($line == '6'){
			$list = array($dn0,$dn1,$dn2,$dn3,$dn4,$dn5);
		}else{
			$list = array($dn0,$dn1,$dn2,$dn3,$dn4,$dn5);
		}
		
		if($layer == '1'){
			$path = array($pathA);	
		}else if($layer == '2'){
			$path = array($pathA,$pathB);	
		}else if($layer == '3'){
			$path = array($pathA,$pathB,$pathC);	
		}else if($layer == '4'){
			$path = array($pathA,$pathB,$pathC,$pathD);	
		}else if($layer == '5'){
			$path = array($pathA,$pathB,$pathC,$pathD,$pathE);	
		}
		
		$result['result'] = 'ok';	
		if($layer != '0'){		// 有路径的时候
			$result['path'] = $path;	
		}
		$result['list'] = $list;	
		echo json_encode($result);
	}
	
	if ($type == '2'){			// 主题数据
		$dn0['name'] = '嗷嗷的AAA夜半却有习习凉风；我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样CCC';
		//$dn0['name'] = '嗷嗷的';
		//$dn0['name'] = '嗷嗷的AAA夜半却有习习凉风；、桂堂之东。AAA';
		$dn0['them'] = '1';
		$dn0['post'] = '1';
		$dn0['time'] = '2023-11-10 17:30:10';
		
		//$dn1['name'] = '嘎嘎的嗷嗷的AAA夜半却有习习凉风；我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样CCC';
		$dn1['name'] = '嘎嘎的';
		$dn1['them'] = '2';
		$dn1['post'] = '3';
		$dn1['time'] = '2023-11-10 17:30:10';
		
		$dn2['name'] = '哈师大哈市东方红';
		$dn2['them'] = '4';
		$dn2['post'] = '4';
		$dn2['time'] = '2023-11-10 17:30:10';
		
		$dn3['name'] = '搭嘎三十多得更快大概多少规萨嘎收到货挂号费金海国际估计就感觉华工科技好地方尴尬代发给返回合肥国际汇款讲课费搭嘎大法个恢复规划分光光划哈阿萨德';
		//$dn3['name'] = '哈手动滑稽';
		$dn3['them'] = '5';
		$dn3['post'] = '5';
		$dn3['time'] = '2023-11-10 17:30:10';
		
		$dn4['name'] = '啊干啥哈';
		$dn4['them'] = '6';
		$dn4['post'] = '6';
		$dn4['time'] = '2023-11-10 17:30:10';	
		
		$dn5['name'] = '啊哈哈的';
		$dn5['them'] = '7';
		$dn5['post'] = '7';
		$dn5['time'] = '2023-11-10 17:30:10';
		
		$path0['name'] = '';
		$pathA['name'] = 'aaaaaaa';
		$pathB['name'] = 'bbbbbbb';
		$pathC['name'] = 'CCCCCCC';
		$pathD['name'] = 'DDDDDDD';
		$pathE['name'] = 'EEEEEEE';
		
		if ($line == '1'){
			$list = array($dn0);	
		}else if($line == '2'){
			$list = array($dn0,$dn1);
		}else if($line == '3'){
			$list = array($dn0,$dn1,$dn2);
		}else if($line == '4'){
			$list = array($dn0,$dn1,$dn2,$dn3);	
		}else if($line == '5'){
			$list = array($dn0,$dn1,$dn2,$dn3,$dn4);	
		}else if($line == '6'){
			$list = array($dn0,$dn1,$dn2,$dn3,$dn4,$dn5);
		}else{
			$list = array($dn0,$dn1,$dn2,$dn3,$dn4,$dn5);
		}
		
		if($layer == '1'){
			$path = array($pathA);	
		}else if($layer == '2'){
			$path = array($pathA,$pathB);	
		}else if($layer == '3'){
			$path = array($pathA,$pathB,$pathC);	
		}else if($layer == '4'){
			$path = array($pathA,$pathB,$pathC,$pathD);	
		}else if($layer == '5'){
			$path = array($pathA,$pathB,$pathC,$pathD,$pathE);	
		}
	
		
		$result['result'] = 'ok';	
		if($layer != '0'){		// 有路径的时候
			$result['path'] = $path;	
		}
		$result['list'] = $list;	
		echo json_encode($result);
	}
	
	if ($type == '3'){			// 浏览数据
		$dn0['nick'] = '嗷嗷的';
		$dn0['memb'] = '会员';
		$dn0['onli'] = '1';
		$dn0['jfen'] = '积分：1';
		$dn0['post'] = '已发帖子：0';
		$dn0['time'] = '2023-11-10 17:30:10';
		$dn0['date'] = '注册时间：2022-01-10';
		$dn0['like'] = '12';
		$dn0['dele'] = '1';		
		$dn0['cont'] = '昨夜星光灿烂，夜半却有习习凉风；我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；
		分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯；策马赶到兰台，像随风飘转的蓬蒿。昨夜星光灿烂，夜半却有习习凉风；我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；
		内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯昨夜星光灿烂，夜半却有习习凉风；我们酒筵设在画楼西畔、桂堂之东。
		身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯昨夜星光灿烂，夜半却有习习凉风；
		我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯.';
		$dn0['repl'] = '回复者A';
		$dn0['text'] = '';
		//$dn0['text'] = '看一眼，满是繁华;忘一眼，人事全非，还记得我吻你的额头，那是十八岁的夜晚，你笑着说，我会是你这一生最爱的那个，可现在呢，空房间里飘荡着浓烈的酒精味.';
		
		$dn1['nick'] = '嘎嘎的';
		$dn1['memb'] = '非会员';
		$dn1['onli'] = '0';
		$dn1['jfen'] = '积分：10';
		$dn1['post'] = '已发帖子：1';
		$dn1['time'] = '2023-11-10 17:30:10';
		$dn1['date'] = '注册时间：2022-01-12';
		$dn1['like'] = '13';
		$dn1['dele'] = '0';		
		$dn1['cont'] = '纤薄的云彩在天空中变幻多端，。';
		//$dn1['cont'] = '纤薄的云彩在天空中变幻多端，天上的流星传递着相思的愁怨，遥远无垠的银河今夜我悄悄渡过。在秋风白露的七夕相会，就胜过尘世间那些长相厮守却貌合神离的夫妻。';
		$dn1['repl'] = '回复者B';
		//$dn1['text'] = '在你离开之后，我把你的东西全都扔掉了，唯一没有扔掉的是我们的回忆，虽然我的爱情满目疮痍，不忍直视，但是我不后悔曾经爱过你.';
		$dn1['text'] = '在你离开之后，我把你.';
		
		$dn2['nick'] = '哈师大哈市东方红';
		$dn2['memb'] = '非会员';
		$dn2['onli'] = '1';
		$dn2['jfen'] = '积分：23';
		$dn2['post'] = '已发帖子：2';
		$dn2['time'] = '2023-11-10 17:30:10';
		$dn2['date'] = '注册时间：2022-02-13';
		$dn2['like'] = '14';
		$dn2['dele'] = '1';		
		$dn2['cont'] = '当年在曲折的回廊深处，我再一次与你相逢，我怜惜地将你轻轻拥人怀中。两人深隋相偎，低语呢喃，互述久别后的相思情意。在我的怀里，你的身体微微颤动，轻轻擦拭着滴落的晶莹泪水，让人无限地怜惜，而今，记忆中的美妙已成别后的凄凉。';
		$dn2['repl'] = '回复者C';
		$dn2['text'] = '';
		//$dn2['text'] = '白落梅说：“真爱无悔，无论你我以何种方式来对待自己的情感。只要付出真心，拥有过珍惜过，就是最大的慈悲。';
		
		$dn3['nick'] = '哈手动滑稽';
		$dn3['memb'] = '会员';
		$dn3['onli'] = '1';
		$dn3['jfen'] = '积分：51';
		$dn3['post'] = '已发帖子：3';
		$dn3['time'] = '2023-11-10 17:30:10';
		$dn3['date'] = '注册时间：2021-06-18';
		$dn3['like'] = '1511';
		$dn3['dele'] = '0';		
		$dn3['cont'] = '我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯；策马赶到兰台。';
		$dn3['repl'] = '回复者D';
		$dn3['text'] = '一步一个脚印走来，自己内心总是有很多的感慨，感慨时间，感慨青春，最后我很感激在我人生道路上给过我鼓励的人们，即使是身边路人一个不知名的微笑。';
		
		$dn4['nick'] = '啊干啥哈';
		$dn4['memb'] = '非会员';
		$dn4['onli'] = '0';
		$dn4['jfen'] = '积分：32';
		$dn4['post'] = '已发帖子：4';
		$dn4['time'] = '2023-11-10 17:30:10';
		$dn4['date'] = '注册时间：2022-07-15';
		$dn4['like'] = '16';
		$dn4['dele'] = '1';		
		$dn4['cont'] = '夜半却有习习凉风；我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯；策马赶到兰台，像随风。';
		$dn4['repl'] = '回复者E';
		$dn4['text'] = '汉霄苍茫，牵住繁华哀伤，弯眉间， 命中注定，成为过往。 秋风无情划着脸，夜里总是睁着眼睛到天亮，熟悉的场景里看到的竟是一张张陌生的脸孔，我们在年华里练习虚伪的笑容.';
		
		$dn5['nick'] = '啊哈哈的';
		$dn5['memb'] = '会员';
		$dn5['onli'] = '0';
		$dn5['jfen'] = '积分：26';
		$dn5['post'] = '已发帖子：5';
		$dn5['time'] = '2023-11-10 17:30:10';
		$dn5['date'] = '注册时间：2020-08-22';
		$dn5['like'] = '17';
		$dn5['dele'] = '0';		
		$dn5['cont'] = '设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯；策马赶到兰台，像随风飘转的。';
		$dn5['repl'] = '回复者F';
		$dn5['text'] = '学生时代里，因为不懂什么是利益交换，不懂什么是社会的黑暗，也不知道有一天我们会形同陌路。那时候我会很开心的过每一天，看一场搞笑的电影会笑半天，有心事会和自己身边的人说，遇到伤心事，第二天就当做是粉笔字擦掉，那时的日子每一天都是晴天，
		偶尔也会刮风打雷，但是那些只是插曲，不影我这首主题曲，在年少轻狂的日子里，我肆无忌惮的笑，朋友说我的笑容很好看，为了这句话我足足开心了一个星期，吃饭的时候也会感到很开心.';
		
		$path0['name'] = '';
		$pathA['name'] = 'aaaaaaa';
		$pathB['name'] = 'bbbbbbb';
		$pathC['name'] = 'CCCCCCC';
		$pathD['name'] = 'DDDDDDD';
		$pathE['name'] = 'EEEEEEE';
		
		if ($line == '1'){
			$list = array($dn0);	
		}else if($line == '2'){
			$list = array($dn0,$dn1);
		}else if($line == '3'){
			$list = array($dn0,$dn1,$dn2);
		}else if($line == '4'){
			$list = array($dn0,$dn1,$dn2,$dn3);	
		}else if($line == '5'){
			$list = array($dn0,$dn1,$dn2,$dn3,$dn4);	
		}else if($line == '6'){
			$list = array($dn0,$dn1,$dn2,$dn3,$dn4,$dn5);
		}else{
			$list = array($dn0,$dn1,$dn2,$dn3,$dn4,$dn5);
		}
		
		if($layer == '1'){
			$path = array($pathA);	
		}else if($layer == '2'){
			$path = array($pathA,$pathB);	
		}else if($layer == '3'){
			$path = array($pathA,$pathB,$pathC);	
		}else if($layer == '4'){
			$path = array($pathA,$pathB,$pathC,$pathD);	
		}else if($layer == '5'){
			$path = array($pathA,$pathB,$pathC,$pathD,$pathE);	
		}
	
		$result['result'] = 'ok';	
		if($layer != '0'){		// 有路径的时候
			$result['path'] = $path;	
		}
		$result['list'] = $list;	
		echo json_encode($result);
	}
	
	
	if ($type == '4'){			// 用户帖子列表数据
		$dn0['nick'] = '嗷嗷的';
		$dn0['titl'] = '烧大法师水帝国时代搭还记得我吻你的额头，那是十八岁的夜晚，你笑着说，我会是你,五更鼓应该上朝点卯昨夜星光灿烂，夜半却有习';
		//$dn0['titl'] = '十八岁的夜晚';
		$dn0['time'] = '2023-11-10 17:30:10';
		//$dn0['cont'] = '彩凤的双翼';
		$dn0['cont'] = '昨夜星光灿烂，夜半却有习习凉风；我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；
		分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯；策马赶到兰台，像随风飘转的蓬蒿。昨夜星光灿烂，夜半却有习习凉风；我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；
		内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯昨夜星光灿烂，夜半却有习习凉风；我们酒筵设在画楼西畔、桂堂之东。
		身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯昨夜星光灿烂，夜半却有习习凉风；
		我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯.';

		$dn1['nick'] = '嘎嘎的';
		$dn1['titl'] = '很顺利地方郭德纲阿三哥撒搭嘎三个萨达噶事';
		$dn1['time'] = '2023-11-10 17:30:10';
		//$dn1['cont'] = '纤薄的云彩在天空中变幻多端，天上的流星传递着相思的愁怨，遥远无垠的银河今夜我悄悄渡过。在秋风白露的七夕相会，就胜过尘世间那些长相厮守却貌合神离的夫妻。';
		$dn1['cont'] = '流星传递着相思的愁';

		$dn2['nick'] = '哈师大哈市东方红';
		$dn2['titl'] = '几个撒u也是打工你赶快收纳';
		$dn2['time'] = '2023-11-10 17:30:10';
		//$dn2['cont'] = '当年在曲折的回廊深处，我再一次与你相逢，我怜惜地将你轻轻拥人怀中。两人深隋相偎，低语呢喃，互述久别后的相思情意。在我的怀里，你的身体微微颤动，轻轻擦拭着滴落的晶莹泪水，让人无限地怜惜，而今，记忆中的美妙已成别后的凄凉。';
		$dn2['cont'] = '我再一次与你相逢';
		
		$dn3['nick'] = '哈手动滑稽';
		$dn3['titl'] = '金黄色的高速啊是个男的估计阿萨达给';
		$dn3['time'] = '2023-11-10 17:30:10';
		$dn3['cont'] = '我们酒筵设在画楼西畔。';
		//$dn3['cont'] = '我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯；策马赶到兰台。';

		$dn4['nick'] = '啊干啥哈';
		//$dn4['titl'] = '感情息息相通。互相猜钩嬉戏，酒暖心；分组来行酒令隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯昨夜';
		$dn4['titl'] = '互相猜钩嬉戏';
		$dn4['time'] = '2023-11-10 17:30:10';
		//$dn4['cont'] = '夜半却有习习凉风；我们酒筵设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯；策马赶到兰台，像随风。';
		$dn4['cont'] = '夜半却有习习凉风。';

		$dn5['nick'] = '啊哈哈的';
		$dn5['titl'] = '阿萨德还打算噶时间饿了了';
		$dn5['time'] = '2023-11-10 17:30:10';
		//$dn5['cont'] = '设在画楼西畔、桂堂之东。身上无彩凤的双翼，不能比翼齐飞；内心却像灵犀一样，感情息息相通。互相猜钩嬉戏，隔座对饮春酒暖心；分组来行酒令，决一胜负烛光泛红。可叹呵，听到五更鼓应该上朝点卯；策马赶到兰台，像随风飘转的。';
		$dn5['cont'] = '设在画楼西畔';

		$path0['name'] = '';
		$pathA['name'] = 'aaaaaaa';
		$pathB['name'] = 'bbbbbbb';
		$pathC['name'] = 'CCCCCCC';
		$pathD['name'] = 'DDDDDDD';
		$pathE['name'] = 'EEEEEEE';
		
		if ($line == '1'){
			$list = array($dn0);	
		}else if($line == '2'){
			$list = array($dn0,$dn1);
		}else if($line == '3'){
			$list = array($dn0,$dn1,$dn2);
		}else if($line == '4'){
			$list = array($dn0,$dn1,$dn2,$dn3);	
		}else if($line == '5'){
			$list = array($dn0,$dn1,$dn2,$dn3,$dn4);	
		}else if($line == '6'){
			$list = array($dn0,$dn1,$dn2,$dn3,$dn4,$dn5);
		}else{
			$list = array($dn0,$dn1,$dn2,$dn3,$dn4,$dn5);
		}
		
		if($layer == '1'){
			$path = array($pathA);	
		}else if($layer == '2'){
			$path = array($pathA,$pathB);	
		}else if($layer == '3'){
			$path = array($pathA,$pathB,$pathC);	
		}else if($layer == '4'){
			$path = array($pathA,$pathB,$pathC,$pathD);	
		}else if($layer == '5'){
			$path = array($pathA,$pathB,$pathC,$pathD,$pathE);	
		}
	
		$result['result'] = 'ok';	
		if($layer != '0'){		// 有路径的时候
			$result['path'] = $path;	
		}
		$result['list'] = $list;	
		echo json_encode($result);
	}

?>